﻿using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp.Models
{
    public class UserViewModel
    {
        public string Id { get; set; }
        public string Email { get; set; }
        public string Role { get; set; }
        public bool IsAdmin
        {
            get
            {
                bool result = false;
                if ((!string.IsNullOrWhiteSpace(this.Role)) && this.Role.Trim() == "Administrator")
                {
                    result = true;
                }
                return result;
            }
        }
    }
}